﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OpenExpressApp.MetaAttribute;
using OpenExpressApp.MetaModel;
using Csla;
using OpenExpressApp.Types;
using lite;

namespace OpenExpressApp.Module.Library
{

    [Serializable]
    [BusinessObject("2AD79A5D-637F-406e-A675-900C2BB58D58")]
    [NavigateQueryType(typeof(OrgPositionOperationCriteria), Header = "模块", NavigateQueryMode = NavigateQueryMode.Local)]
    public partial class OrgPositionDataPermissionCriteria : BusinessBase<OrgPositionDataPermissionCriteria>, IQueryObject
    {
        //#region Properties

        [NotUndoable, NonSerialized]
        private BusinessObjectInfoList _businessObjectInfoList;

        [Association(CreateToolbar = false, IsRecur=false)]
        [Label("模块")]
        [QueryItemValueType(QueryItemValueType.Id, IdPropertyName="ModuleId"), NavigateQueryItem]
        public BusinessObjectInfoList DefaultObjectInfoList
        {
            get
            {
                if (null == _businessObjectInfoList)
                    _businessObjectInfoList = BusinessObjectInfoList.GetModules();
                return _businessObjectInfoList;
            }
        }

        public Guid ModuleId { get; set; }
        
        public BusinessObjectInfo BusinessObjectInfo { get; set; }

        #region IQueryObject Members

        public void CheckRules()
        {

        }

        #endregion
    }
}
